<template>
  <div class="home">
      <div id="app">
    <div id="nav">
      <router-link to="/" class="hot">拉勾网</router-link>
    </div>
  </div>
    <div class="header">
    <router-view></router-view>
    </div>
    <div class="footer">
      <router-link active-class="active" to="/profession">
        <span class="iconfont">&#xe62f;</span>职位
      </router-link>
      <router-link active-class="active" to="/search">
        <span class="iconfont">&#xe632;</span>搜索
      </router-link>
      <router-link active-class="active" to="/my">
        <span class="iconfont">&#xe62e;</span>我的
      </router-link>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: "home",
  components: {}
};
</script>

<style lang="css">
#nav {
  height: 50px;
  background: #00b38a;
  text-align: center;
  line-height: 50px;
}
.hot {
  display: block;
  color: white;
  font-size: 20px;
}

.home {
  overflow: hidden;
}
.header {
  margin-bottom: 50px;
}
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  background: white;
}
.footer a {
  display: block;
  width: 110px;
  line-height: 50px;
  text-align: center;
  font-size: 20px;
}
.active {
  color: #00b38a;
  background: #e7f3f0;
}
.active .iconfont {
  color: #00b38a;
  font-size: 20px;
}

</style>
